// 统一处理 Cookie

import storageKey from "@/config/storageKey"
import Cookies from "js-cookie"

export const getToken = () => {
  return Cookies.get(storageKey.TOKEN)
}

export const setToken = (token: string) => {
  Cookies.set(storageKey.TOKEN, token)
}

export const removeToken = () => {
  Cookies.remove(storageKey.TOKEN)
}
